using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Net;
using System.Web;
using System.Web.Services;
using Dimok.Aspx.Manager.Lib;

namespace Dimok.Aspx.Manager.Tracking {
	public class AirCept : System.Web.Services.WebService {
		public AirCept() {
			//CODEGEN: This call is required by the ASP.NET Web Services Designer
			InitializeComponent();
		}

		#region Component Designer generated code
		
		//Required by the Web Services Designer 
		private IContainer components = null;
				
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent() {
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing ) {
			if(disposing && components != null) {
				components.Dispose();
			}
			base.Dispose(disposing);		
		}
		
		#endregion


		[WebMethod]
		public string GetHistory(string esn) {
			/*
			WebClient wc = new WebClient();
			ReqDSEx dsWA = new ReqDSEx();
			dsWA.EnforceConstraints = false;
			ReqDS.apiclientRow api = dsWA.apiclient.AddapiclientRow("david","martha801",0);
			dsWA.history_request.Addhistory_requestRow("48",esn,api);
			string xml = new XmlDataDocument(dsWA).DocumentElement.InnerXml;
			byte[] response = wc.UploadData("https://www.wireless-security.com/API/apixml.asp",Encoding.ASCII.GetBytes(xml));
			RespDS dsResp = new RespDS();
			dsResp.ReadXml(new StringReader(Encoding.ASCII.GetString(response)));
			return dsResp;
			*/
			return "";
		}
		class ReqDSEx :ReqDS {
			public ReqDSEx()
				: base() {
				apiclient.apiclient_IdColumn.ColumnMapping = MappingType.Hidden;
				action_request.apiclient_IdColumn.ColumnMapping = MappingType.Hidden;
				history_request.apiclient_IdColumn.ColumnMapping = MappingType.Hidden;
			}
		}
	}
}
